package com.xe.map;

import android.content.Context;
import android.widget.Toast;

import com.baidu.mapapi.MKGeneralListener;
import com.baidu.mapapi.map.MKEvent;

public class GeneralListener implements MKGeneralListener {

	private Context mContext;

	public GeneralListener(Context context) {
		mContext = context;
	}

	public void onGetNetworkState(int iError) {
		// Log.w(IMPP.TAG, "获取网络状态错误:" + iError);
		Toast.makeText(mContext, "获取网络状态错误", Toast.LENGTH_SHORT).show();
	}

	public void onGetPermissionState(int iError) {
		// Log.w(IMPP.TAG, "百度授权错误: " + iError);
		if (iError == MKEvent.ERROR_PERMISSION_DENIED) {
			Toast.makeText(mContext, "百度授权错误", Toast.LENGTH_SHORT).show();
		}
	}

}
